# 缺省参数后面不能再定义参数
# def print_info(name, gender=True, age):
#     gender_text = "男生"
#
#     if not gender:
#         gender_text = "女生"
#     print(" %s , %s " % (name, gender))


# 多个缺省参数
def print_info1(name, gender=True, age=10):
    gender_text = "男生"

    if not gender:
        gender_text = "女生"
    print(" name:%s , gender:%s age:%s" % (name, gender, age))


print_info1("小明")
print_info1("小明", False)
print_info1("小明", age=100)
print_info1("小明", False, 100)
